﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using F2S.OAuth;

namespace F2S.oAuth
{
    public class OAuthExecutionRequest
    {
        public string Url { get; private set; }
        public OAuthCredentials Credentials { get; private set; }
        public string Method { get; private set; }

        public OAuthExecutionRequest()
        {
            
        }

        public OAuthExecutionRequest(OAuthCredentials credentials, string url, string method = "GET")
        {
            Credentials = credentials;
            Url = url;
            Method = method;
        }

        public override string ToString()
        {
            return string.Format("{0} {1} {2} {3} {4} {5}", Url, Method, Credentials.UserCredentials.UserToken,
                Credentials.UserCredentials.UserSecret, Credentials.AppCredentials.ApiKey,
                Credentials.AppCredentials.ApiSecret);
        }
    }
}
